package cz.acies.organizer.data.model;

import java.sql.Timestamp;
import java.util.HashMap;
import java.util.Map;

import cz.acies.data.persist.DefaultModelObject;

public class MModelRecord extends DefaultModelObject
{
	private static final long serialVersionUID = 5608490411143533459L;
	
	protected String DEF_MODUL_ID = "";
	protected String DEF_TYPE_PROCESS = "";

	protected String modulId = "";

	protected String folderId = "";
	protected String mainId = "";
	
	protected String typeProcess; 												//TYPE_PROCESS` varchar(20) NOT NULL default '',

	// -----  -----------------------------------------------------------------
	
	public MModelRecord() {
		this(null, null);
	}
	
	public MModelRecord(String id) {
		this(id, null);
	}

	public MModelRecord(String id, Map<String, Object> data) {
		super(id, data);
		//this.setId(id);
		//this.setData((data == null) ? new HashMap<String, Object>() : data);
		
		initialize();
		
		this.modulId = DEF_MODUL_ID;
		this.typeProcess = DEF_TYPE_PROCESS;
	}
	
	protected void initialize() {}
	
	protected void mapToData() {}
	
	// -----  -----------------------------------------------------------------
	/*
	public Map<String, Object> getData() {
		return data;
	}
	
	public Object getData(String key) {
		return data.get(key);
	}
	
	public void setData(Map<String, Object> data) {
		this.data = (data == null) ? new HashMap<String, Object>() : data;
	}

	public void setData(String key, Object value) {
		this.data.put(key, value);
	}
	*/
	// -----  -----------------------------------------------------------------
	/*
	public String getId() {
		return id;
	}
	
	public void setId(String id) {
		setData("id", this.id = id);
	}
	*/
	// -----  -----------------------------------------------------------------
	
}
